package org.jeecg.modules.farming.technology.service.impl;

import org.jeecg.modules.farming.news.mapper.NewsCommentPraiseMapper;
import org.jeecg.modules.farming.technology.entity.TecCommentPraise;
import org.jeecg.modules.farming.technology.mapper.TecCommentPraiseMapper;
import org.jeecg.modules.farming.technology.service.ITecCommentPraiseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 科技咨询评论-点赞
 * @Author: jeecg-boot
 * @Date:   2020-12-14
 * @Version: V1.0
 */
@Service
public class TecCommentPraiseServiceImpl extends ServiceImpl<TecCommentPraiseMapper, TecCommentPraise> implements ITecCommentPraiseService {
    @Autowired
    private TecCommentPraiseMapper commentPraiseMapper;

    @Override
    public TecCommentPraise getOneByOpenIdAndCommentId(String loginUserId, String id) {
        return commentPraiseMapper.getOneByOpenIdAndCommentId(loginUserId,id);
    }
}
